<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">
<title>Insert title here</title>
<script type="text/javascript" src="objectcreate.js"></script>
</head>
<body >


	 <script type="text/javascript">
	 <!--
	 if ( typeof Object.create !== 'function')
	{
		 Object.prototype.create = function (o) {
			 var F = function() {};
			 F.prototype= o;
			 return new F();
		 }
		 
	}
//	if ( typeof Object.inherit !=== 'function')
//	{
//		Object.prototype.inherit = function (o)
//		{
//			if ( o === null)
//			{
//				throw TypeError();
//			}
//			if (Object)
//		}
//	}
	 var o1 = Object.create({x:1,y:2});
	 for ( v in o1)
		 {
		 if (typeof o1[v] !== 'function')
			 	document.write('---' +o1[v]);
		 }
	 //-->
	 </script>

</body>
</html>